import { createApp, watch } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import AntD from "ant-design-vue";
import components from "@/plugins/components";
import "ant-design-vue/dist/antd.css";
import "@/assets/style/index.scss";

const appInstance = createApp(App);
appInstance.directive("focus", {
    mounted(el) {
        el.focus();
    },
});
// appInstance.config.errorHandler = err => {
//     console.dir((err as unknown as Error).message);
// };
appInstance.use(store).use(router).use(AntD).use(components).mount("#app");
